from django import forms
from django.contrib.auth.models import User
class LoginForm(forms.Form):
    class Meta:
        model = User
        fields = ['username','password']
        widgets = {
            
            'username': forms.TextInput(
                attrs = {
                'id': 'name', 
                'required': True, 
                'placeholder': 'Name',
                'class':'form-control',
                'aria-describedby':"sizing-addon1"
                }),
            'password': forms.TextInput(
                attrs = {
                'id':'passwd',
                'required':True,
                'placeholder':"password",
                'type':'password',
                'name':'password',
                'class':'form-control',
                'aria-describedby':'sizing-addon1'
                }),
        }

